package com.cyy.bean;

public class product {
    int id;
    String name;
    int price;
    int reserve;
    int sold;
    String cover;
    int usability;

    public product(int id,String name, int price, int reserve, int sold, String cover,int usability) {
        this.id=id;
        this.name = name;
        this.price = price;
        this.reserve = reserve;
        this.sold = sold;
        this.cover = cover;
        this.usability=usability;
    }
    public product(int id,String name, int price, int reserve, int sold, String cover) {
        this.id=id;
        this.name = name;
        this.price = price;
        this.reserve = reserve;
        this.sold = sold;
        this.cover = cover;
        this.usability=1;
    }
    @Override
    public String toString() {
        return "product{" +
                "id='" + id + '\'' +
                "name='" + name + '\'' +
                ", price=" + price +
                ", reserve=" + reserve +
                ", sold=" + sold +
                ", cover='" + cover + '\'' +
                ", usability='" + usability + '\'' +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public int getReserve() {
        return reserve;
    }

    public void setReserve(int reserve) {
        this.reserve = reserve;
    }

    public int getSold() {
        return sold;
    }

    public void setSold(int sold) {
        this.sold = sold;
    }

    public String getCover() {
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    public int getUsability() {
        return usability;
    }

    public void setUsability(int usability) {
        this.usability = usability;
    }
}
